import { requestClient } from '#/api/request'

/**
 *  获取列表
 */
export async function getCutedOrder(params: object = {}) {
  return requestClient.get('/admin/CutedOrder/index', params)
}
/**
 *  反审
 */
export async function cutedOrderAgainst(params: any) {
  return requestClient.post('/admin/cutedOrder/against', params, { responseReturn: 'raw' })
}
/**
 *  审核
 */
export async function cutedOrderApproval(params: any) {
  return requestClient.post('/admin/CutedOrder/approval', params, { responseReturn: 'raw' })
}
/**
 *  审核
 */
export async function cutedOrderDel(params: any) {
  return requestClient.post('/admin/CutedOrder/del', params, { responseReturn: 'raw' })
}
/**
 *  获取生产单分仓
 */
export async function getWarehouseDetail(params: any) {
  return requestClient.post('/admin/GoodsPurchase/getWarehouseDetail', params, { responseReturn: 'raw' })
}


/**
 *  获取生产单分仓
 */
export async function caclWareStockNum(params: any) {
  return requestClient.post('/admin/GoodsPurchase/caclWareStockNum', params, { responseReturn: 'raw' })
}


/**
 *  新增
 */
export async function createCutedOrder(params: any) {
  return requestClient.post('/admin/CutedOrder/add', params, { responseReturn: 'raw' })
}



/**
 *  更新
 */
export async function updateCutedOrder(params: any) {
  return requestClient.post('/admin/CutedOrder/edit', params, { responseReturn: 'raw' })
}


/**
 *  编辑
 */
export async function goodsPurchaseEdit(params: any) {
  return requestClient.get('/admin/CutedOrder/edit', params, { responseReturn: 'raw' })
}

